package funcoes;

public class Esfera implements IFuncao {

	@Override
	public double calcularAptidao(double[] x) {
		double aptidao = 0;
		for(int i = 0; i < x.length; i++)
		{
			aptidao += x[i]*x[i];
		}
		return aptidao;
	}

	@Override
	public String getNome() {
		return "esfera";
	}

}
